#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../lingmeng-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy lingmeng-gateway "
cp ../lingmeng-gateway/target/lingmeng-gateway.jar ./lingmeng/gateway/jar

echo "begin copy lingmeng-auth "
cp ../lingmeng-auth/target/lingmeng-auth.jar ./lingmeng/auth/jar

echo "begin copy lingmeng-visual "
cp ../lingmeng-visual/lingmeng-monitor/target/lingmeng-visual-monitor.jar  ./lingmeng/visual/monitor/jar

echo "begin copy lingmeng-modules-system "
cp ../lingmeng-modules/lingmeng-system/target/lingmeng-modules-system.jar ./lingmeng/modules/system/jar

echo "begin copy lingmeng-modules-file "
cp ../lingmeng-modules/lingmeng-file/target/lingmeng-modules-file.jar ./lingmeng/modules/file/jar

echo "begin copy lingmeng-modules-job "
cp ../lingmeng-modules/lingmeng-job/target/lingmeng-modules-job.jar ./lingmeng/modules/job/jar

echo "begin copy lingmeng-modules-gen "
cp ../lingmeng-modules/lingmeng-gen/target/lingmeng-modules-gen.jar ./lingmeng/modules/gen/jar

